package com.ruoyi.system.api.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 购物车对象 shop_cart
 *

 * @date 2023-07-20
 */
public class Cart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车商品id */
    private Long cartId;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 商铺编号 */
    @Excel(name = "商铺编号")
    private Long shopsId;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    private Long productCount;

    public void setCartId(Long cartId)
    {
        this.cartId = cartId;
    }

    public Long getCartId()
    {
        return cartId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setShopsId(Long shopsId)
    {
        this.shopsId = shopsId;
    }

    public Long getShopsId()
    {
        return shopsId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setProductCount(Long productCount)
    {
        this.productCount = productCount;
    }

    public Long getProductCount()
    {
        return productCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartId", getCartId())
            .append("userId", getUserId())
            .append("shopsId", getShopsId())
            .append("productId", getProductId())
            .append("productCount", getProductCount())
            .append("createTime", getCreateTime())
            .toString();
    }
}
